<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/lib/layui-v2.5.5/css/layui.css}" media="all">
    <script th:src="@{/lib/layui-v2.5.5/layui.js}" charset="utf-8"></script>
</head>
<body>
<a href="/VAllUser" class="layui-btn  layui-btn-sm"><i class="layui-icon layui-icon-return"></i></a>
<div id="addform" style="margin: 40px 30%;">
    <form class="layui-form" action="/editUserId" method="post">
        <input type="hidden" name="userId" th:value="${user1.getUserId()}" />
        <input type="hidden" name="lastLoginTime" th:value="${user1.getLastLoginTime()}" />
        <div class="layui-form-item">
            <label class="layui-form-label">用户名:</label>
            <div class="layui-input-inline">
                <input type="text" name="nickName" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" th:value="${user1.getNickName()}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">姓&nbsp;&nbsp;&nbsp;名:</label>
            <div class="layui-input-inline">
                <input type="text" name="realName" required lay-verify="required" placeholder="请输你的真实姓名" autocomplete="off" class="layui-input" th:value="${user1.getRealName()}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号码</label>
            <div class="layui-input-inline">
                <input type="text" name="phone" required lay-verify="required" placeholder="请输你的手机号码" autocomplete="off" class="layui-input" th:value="${user1.getPhone()}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密&nbsp;&nbsp;&nbsp;码:</label>
            <div class="layui-input-inline">
                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input" >
            </div>
            <div class="layui-form-mid layui-word-aux">0~9和a-z</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">重复密码:</label>
            <div class="layui-input-inline">
                <input type="password" name="password1" required lay-verify="required" placeholder="请保持密码一致" autocomplete="off" class="layui-input">
            </div>
            <div  th:text="${Error}" style="color: red; padding-top:8px;"></div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户类型</label>
            <div class="layui-input-block">
                <input type="radio" name="manage" value="root" title="管理员">
                <input type="radio" name="manage" value="common" title="普通用户" checked>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="submit" class="layui-btn" value="确认修改">
                <button type="reset" class="layui-btn">重置</button>
            </div>
        </div>
    </form>
</div>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

    });
</script>
</body>
</html>